You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unify interactive controls and single-line rows to pill and circle shapes - #8394
Context: Components across desktop (apps/desktop-gpui), shared web UI (packages/ui, packages/editor, apps/web), and mobile (apps/mobile) mixed pill/circle controls (such as switches, badges, Open calendar, and compact floating bars) with 4px–14px rounded rectangles on buttons, icon buttons, inputs, selects, segmented controls, and single-line menu/nav rows. On web, an older global border-radius: 0 !important rule in apps/web/src/styles.css and 8px JS squircle clips (useSquircleRef) on Button, Badge, SelectTrigger, and Avatar also prevented pill/circle shapes from rendering.
Intention: Unify single-line interactive controls and single-line navigation/menu rows to consistent pill and circle shapes across desktop, web, and mobile while keeping multi-line containers (cards, popovers, dialogs, textareas, code blocks, callouts, and multi-line list rows) as rounded rectangles.
Direction:
Desktop (apps/desktop-gpui):
Updated single-line interactive controls (buttons, square icon buttons, single-line TextInputs/search bars, selects, segmented control tracks and items, chips/badges, floating single-line toolbars, collapsed Ask anything bar, and audio player bar) and single-line nav/menu rows to radius::FULL, while preserving rounded-rectangle radii (SM–XL) on cards, popovers, dialogs, multi-line textareas, multi-line sidebar/contact/template/automation rows, checkboxes, keycaps, inline code, and thumbnails.
Adjusted horizontal pill padding across tight controls/rows and applied directional .rounded_l(radius::FULL) / .rounded_r(radius::FULL) on flush split/segmented controls (where GPUI's overflow_hidden clips rectangularly).
Updated apps/desktop-gpui/README.md and ui::theme::radius doc comments.
Shared UI & Web (packages/ui, packages/editor, apps/web):
Added corner-shape: round for .rounded-full (and directional variants) in packages/ui/src/styles/corners.css so the global * { corner-shape: squircle; } rule does not square off pill/circle ends.
Removed 8px useSquircleRef clips from Button, Badge, SelectTrigger, and Avatar (now a clean circle), updated Input, InputGroup (single-line pill, multiline rounded-xl), InputGroupButton, appFloatingItemClassName (dropdown/select/command items), AppToast actions, Dialog close button, and @anlg/editor floating toolbar / slash-command / attachment chips to rounded-full with balanced horizontal padding.
Removed the global border-radius: 0 !important override from apps/web/src/styles.css, unified remaining web inputs/icon buttons/menu rows/delta chips/audio player bar to rounded-full, and updated apps/web/AGENTS.md and apps/web/BRAND.md.
Mobile (apps/mobile):
Set Radius.control and LISTENING_CONTROL_RADIUS to DesignRadius.pill (999), unifying StartListeningButton, EditorAccessory format buttons, FolderPickerSheet search input & rows (with Spacing.md horizontal padding and continuous squircle curve), and NoteActionsSheet action rows while keeping grouped inset Card lists and multi-line cards untouched.
Demo
N/A — visual pass across desktop, web, and mobile; desktop screens were rendered and inspected via tests/screens.rs (main, meeting-after, meeting-after-transcript, search-query, contacts-person, settings-intelligence, settings-transcription-provider-menu, settings-account-signed-in, settings-team-owner, settings-imports-detected, share-managed, transcript-selection-bar, calendar, chat-setup).
Common checks: pnpm exec dprint check --allow-no-files across all changed files, pnpm exec oxlint --quiet --format=github apps/web/src/ apps/mobile/src/ packages/ (0 errors), license-boundary Python checks — passed; node --test CI script suite 88/90 passed (2 Windows Store tests require pwsh, unavailable locally on macOS).
Not run locally: Windows/Linux GPUI native builds, iOS/Android native mobile builds, and full apps/web production SSR bundle (covered by CI).
Summary by cubic
Unifies single-line interactive controls and single-line navigation/menu rows to pill and circle shapes across desktop (apps/desktop-gpui), shared UI (packages/ui, packages/editor), web (apps/web), and mobile (apps/mobile). Multi-line containers — cards, popovers, dialogs, textareas, code blocks, callouts, and multi-line list rows — keep rounded rectangles.
Shape policy
Single-line controls (buttons, icon buttons, inputs, selects, segmented control tracks and items, chips, badges, floating toolbars, audio player bars) and single-line menu/nav rows use radius::FULL on desktop, rounded-full on web, and Radius.control = pill on mobile, with balanced horizontal padding.
Flush split and segmented controls get directional .rounded_l(radius::FULL) / .rounded_r(radius::FULL) because GPUI's overflow_hidden clips rectangularly.
Removes 8px useSquircleRef clips from Button, Badge, SelectTrigger, and Avatar; Avatar is now a clean circle.
Migration
Button.smoothCorners and SelectTrigger.corners props are removed; shape now comes from base classes.
Removes the global border-radius: 0 !important override from apps/web/src/styles.css, so all radius classes now render.
Adds corner-shape: round to .rounded-full (and directional) variants in packages/ui/src/styles/corners.css so pill ends aren't squared off by the global squircle rule.
Written for commit 3c90cf6. Summary will update on new commits.
No actionable comments were generated in the recent review.
Walkthrough
The pull request updates corner radii across desktop, mobile, and web controls. Single-line controls and navigation rows use pill or circular shapes, while multiline inputs and container guidance retain distinct rounding. Many controls also receive padding or sizing changes. Shared UI components remove squircle-ref handling, and the global web rule that forced square corners is removed.
Suggested reviewers:yujonglee
Merge Risk: Minimal · up to 3c90c
This change updates control shapes and spacing to pills and circles across the apps. No functional or production-impacting issue was identified, so merge risk is minimal.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: single-line interactive controls and single-line rows are unified to pill and circle shapes. The changeset matches this. The diff covers desktop, shared UI, web, and m…
Description check
The description explains the context, intent, and direction of the change. It lists the per-platform updates (desktop radius::FULL, web rounded-full, mobile Radius.control pill), the removal of the gl…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: single-line interactive controls and single-line rows are unified to pill and circle shapes. The changeset matches this. The diff covers desktop, shared UI, web, and mobile, and the title leaves out the removal of the global web border-radius override and the squircle clips. It does not need to cover every detail.
Full details: Description check
Explanation
The description explains the context, intent, and direction of the change. It lists the per-platform updates (desktop radius::FULL, web rounded-full, mobile Radius.control pill), the removal of the global border-radius override and squircle clips, and the verification steps. This matches the changeset.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Context: Components across desktop (
apps/desktop-gpui), shared web UI (packages/ui,packages/editor,apps/web), and mobile (apps/mobile) mixed pill/circle controls (such as switches, badges,Open calendar, and compact floating bars) with 4px–14px rounded rectangles on buttons, icon buttons, inputs, selects, segmented controls, and single-line menu/nav rows. On web, an older globalborder-radius: 0 !importantrule inapps/web/src/styles.cssand 8px JS squircle clips (useSquircleRef) onButton,Badge,SelectTrigger, andAvataralso prevented pill/circle shapes from rendering.Intention: Unify single-line interactive controls and single-line navigation/menu rows to consistent pill and circle shapes across desktop, web, and mobile while keeping multi-line containers (cards, popovers, dialogs, textareas, code blocks, callouts, and multi-line list rows) as rounded rectangles.
Direction:
apps/desktop-gpui):TextInputs/search bars, selects, segmented control tracks and items, chips/badges, floating single-line toolbars, collapsedAsk anythingbar, and audio player bar) and single-line nav/menu rows toradius::FULL, while preserving rounded-rectangle radii (SM–XL) on cards, popovers, dialogs, multi-line textareas, multi-line sidebar/contact/template/automation rows, checkboxes, keycaps, inline code, and thumbnails..rounded_l(radius::FULL)/.rounded_r(radius::FULL)on flush split/segmented controls (where GPUI'soverflow_hiddenclips rectangularly).apps/desktop-gpui/README.mdandui::theme::radiusdoc comments.packages/ui,packages/editor,apps/web):corner-shape: roundfor.rounded-full(and directional variants) inpackages/ui/src/styles/corners.cssso the global* { corner-shape: squircle; }rule does not square off pill/circle ends.useSquircleRefclips fromButton,Badge,SelectTrigger, andAvatar(now a clean circle), updatedInput,InputGroup(single-line pill, multilinerounded-xl),InputGroupButton,appFloatingItemClassName(dropdown/select/command items),AppToastactions,Dialogclose button, and@anlg/editorfloating toolbar / slash-command / attachment chips torounded-fullwith balanced horizontal padding.border-radius: 0 !importantoverride fromapps/web/src/styles.css, unified remaining web inputs/icon buttons/menu rows/delta chips/audio player bar torounded-full, and updatedapps/web/AGENTS.mdandapps/web/BRAND.md.apps/mobile):Radius.controlandLISTENING_CONTROL_RADIUStoDesignRadius.pill(999), unifyingStartListeningButton,EditorAccessoryformat buttons,FolderPickerSheetsearch input & rows (withSpacing.mdhorizontal padding and continuous squircle curve), andNoteActionsSheetaction rows while keeping grouped insetCardlists and multi-line cards untouched.Demo
N/A — visual pass across desktop, web, and mobile; desktop screens were rendered and inspected via
tests/screens.rs(main,meeting-after,meeting-after-transcript,search-query,contacts-person,settings-intelligence,settings-transcription-provider-menu,settings-account-signed-in,settings-team-owner,settings-imports-detected,share-managed,transcript-selection-bar,calendar,chat-setup).Verification
apps/desktop-gpui:cargo fmt --check,cargo clippy --locked --workspace --all-targets --no-deps -- -D warnings,cargo test --locked --workspace(1,052 lib + 23 a11y + 1 dictation_capture + 20 runtime lib + 15 library + 15 lifecycle +tests/screens.rs),cargo build --locked, andpython3 -m unittest discover -s apps/desktop-gpui/packaging(18 passed) — all passedpackages/ui&packages/editor:pnpm -F @anlg/ui build,pnpm -F @anlg/ui typecheck,pnpm -F @anlg/editor typecheck— passedpackages/supabase&apps/web:pnpm -F @anlg/supabase typecheck,pnpm -F @anlg/supabase test(36 passed),pnpm -F @anlg/web typecheck,pnpm -F @anlg/web test(403 passed),pnpm -F @anlg/web media:figures:check— passedapps/mobile:pnpm -F @anlg/mobile typecheck,pnpm -F @anlg/mobile test(354 passed) — passedpnpm exec dprint check --allow-no-filesacross all changed files,pnpm exec oxlint --quiet --format=github apps/web/src/ apps/mobile/src/ packages/(0 errors), license-boundary Python checks — passed;node --testCI script suite 88/90 passed (2 Windows Store tests requirepwsh, unavailable locally on macOS).apps/webproduction SSR bundle (covered by CI).Summary by cubic
Unifies single-line interactive controls and single-line navigation/menu rows to pill and circle shapes across desktop (
apps/desktop-gpui), shared UI (packages/ui,packages/editor), web (apps/web), and mobile (apps/mobile). Multi-line containers — cards, popovers, dialogs, textareas, code blocks, callouts, and multi-line list rows — keep rounded rectangles.Shape policy
radius::FULLon desktop,rounded-fullon web, andRadius.control = pillon mobile, with balanced horizontal padding..rounded_l(radius::FULL)/.rounded_r(radius::FULL)because GPUI'soverflow_hiddenclips rectangularly.useSquircleRefclips fromButton,Badge,SelectTrigger, andAvatar;Avataris now a clean circle.Migration
Button.smoothCornersandSelectTrigger.cornersprops are removed; shape now comes from base classes.border-radius: 0 !importantoverride fromapps/web/src/styles.css, so all radius classes now render.corner-shape: roundto.rounded-full(and directional) variants inpackages/ui/src/styles/corners.cssso pill ends aren't squared off by the globalsquirclerule.Written for commit 3c90cf6. Summary will update on new commits.